<?
require("config.php");
require("../bin/db.php");
$location_status .= " | About Us";
$table="med_aboutus";
$show_backnav = "media_main";

$menuname = NULL;

$menutarget = NULL;

if (NULL!=$action){

  $field = array(
	"aboutus",
	);

$aboutus = mysql_escape_string($aboutus);

   $content = array(
	$aboutus,
	);

   $expression = "id = '1'";

   myUpdate($table,$field,$content,$expression);


	

   header("location: media_main.php");

}else{
	$Query = "select * from $table where id = 1";
	$r = myQuery($Query);

	if (!$r)header("location:" . $rela_path . "share/msg.php?v=9002");

$aboutus2 = $r[0][1];

}

require($rela_path . "inc/header.php");

?>


<form action="aboutus.php" method="post" enctype="multipart/form-data" name="form1">
<input name="action" type="hidden" value="add">
<table width="95%" border="0" align="center">
  <tr> 
    <td align="right" valign="top">&nbsp; </td>
  </tr>
  <tr> 
    <td valign="top">
      
        <table border="0" cellspacing="0" cellpadding="2">
                          	<tr>
                          	  <td valign="top">About Us (HTML) </td>
                          	  <td></td></tr>
                            <tr> 
                    
                              
                              <td valign="top">
                                <textarea name="aboutus" cols="100" rows="30" id="aboutus"><?=$aboutus2?>
                                </textarea>
</td>
                              <td></td>
                            </tr>
					
    
          <tr>
            
            <td valign="top">
              <input type="image" src="../images/bt_cancel.gif" onClick="Redirect('media_main.php',1);return false;"> <input type="image" src="../images/bt_save.gif">
            </td>
						<td>&nbsp;</td>
          </tr>
        </table>
        <p> <br>
          <br>
          <br>
          <br>
          <br>
        </p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp; </p></td>
  </tr>
</table>

</FORM>

<?
require($rela_path . "inc/footer.php");
?>
